import request from '@/utils/request'

// 查询材料附件列表
export function listEnclosure(query) {
  return request({
    url: '/system/enclosure/list',
    method: 'get',
    params: query
  })
}

// 查询材料附件详细
export function getEnclosure(id) {
  return request({
    url: '/system/enclosure/' + id,
    method: 'get'
  })
}

// 新增材料附件
export function addEnclosure(data) {
  return request({
    url: '/system/enclosure',
    method: 'post',
    data: data
  })
}

// 修改材料附件
export function updateEnclosure(data) {
  return request({
    url: '/system/enclosure',
    method: 'put',
    data: data
  })
}

// 删除材料附件
export function delEnclosure(id) {
  return request({
    url: '/system/enclosure/' + id,
    method: 'delete'
  })
}
